//
//  CDSetTwoDetailController.m
//  CuriosityDaily3
//
//  Created by donghao on 16/9/26.
//  Copyright © 2016年 theBestTeam. All rights reserved.
//

#import "CDSetTwoDetailController.h"

@interface CDSetTwoDetailController ()

@end

@implementation CDSetTwoDetailController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    self.view.backgroundColor = [UIColor darkGrayColor];
    
    [self setupUI];
}
- (void)setNbar {
    self.navigationController.navigationBar.titleTextAttributes = @{ NSForegroundColorAttributeName: [UIColor whiteColor] };
    self.navigationController.navigationBar.translucent = YES;
    [self.navigationController.navigationBar setShadowImage:[UIImage new]];
    [self.navigationController.navigationBar setBackgroundImage:[UIImage new] forBarPosition:UIBarPositionAny barMetrics:UIBarMetricsDefault];
    
}
/**
 *  设置界面
 */
- (void)setupUI {
    
    UITextView *textView = [[UITextView alloc] initWithFrame:CGRectMake(0, 40, self.view.frame.size.width, 100)];
    
    UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
    [button setTitle:@"保存" forState:UIControlStateNormal];
    //    [button setTitleColor:[UIColor orangeColor] forState:UIControlStateNormal];
    [button setTitleColor:[UIColor orangeColor] forState:UIControlStateNormal];
    [button setTitleColor:[UIColor orangeColor] forState:UIControlStateNormal];
    [button setTitleColor:[UIColor orangeColor] forState:UIControlStateNormal];
    button.bounds = CGRectMake(0, 0, 45, 20);
    UIBarButtonItem *saveButton = [[UIBarButtonItem alloc] initWithCustomView:button];
    self.navigationItem.rightBarButtonItem = saveButton;
    
    [button addTarget:self action:@selector(save) forControlEvents:UIControlEventTouchUpInside];
}

- (void)save {
 
}



- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
